//
//  UIView+Extension.m
//  s.
//
//  Created by 谈虎啸 on 2022/8/26.
//  Copyright © 2022 J. All rights reserved.
//

#import "UITableView+Extension.h"

@implementation UITableView (Extension)

- (void)setFlag:(NSInteger)flag
{
    objc_setAssociatedObject(self, @selector(flag), @(flag), OBJC_ASSOCIATION_ASSIGN);
}
- (NSInteger)flag
{
    return [objc_getAssociatedObject(self, @selector(flag)) integerValue];
}
- (void)setIdentify:(NSString *)identify
{
    objc_setAssociatedObject(self, @selector(identify), identify, OBJC_ASSOCIATION_COPY);
}
- (NSString *)identify
{
    return objc_getAssociatedObject(self, @selector(identify));
}


- (void)forbidContentInsetAdjustment
{
    if (@available(iOS 11.0,*)) {
        self.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
    }
}

@end
